From: Alan Mackenzie Date: Mon, 29 Jun 2009 14:44:04 +0000 (+0000) Subject: (c-mask-paragraph): Remove a spurious correction between the visible X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~11751 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=fe9a59f6ce3a92aeea04871dbe985b94332e982e;p=emacs.git (c-mask-paragraph): Remove a spurious correction between the visible width of TABs and their number of bytes, so that point is undisturbed after typing a space, when there are tabs just before "*/". --- diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index 1c51a4b6fd2..cb88f344cc0 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el @@ -4202,8 +4202,7 @@ Warning: Regexp from `c-comment-prefix-regexp' doesn't match the comment prefix (forward-char (- hang-ender-stuck)) (if (or fill-paragraph (not auto-fill-spaces)) (insert-char ?\ hang-ender-stuck t) - (insert auto-fill-spaces) - (setq here (- here (- hang-ender-stuck (length auto-fill-spaces))))) + (insert auto-fill-spaces)) (delete-char hang-ender-stuck) (goto-char here)) (set-marker tmp-post nil))